package com.example.bigwork.entity;

import com.example.bigwork.enums.OrderStatus;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Order {
    private Long id;
    private String orderNumber; // Unique order identifier
    private Long userId;
    private BigDecimal totalPrice;
    private OrderStatus status; // Using Enum
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // For retrieving order details including items
    private List<OrderItem> items;
    private User user; // Optional: if you want to fetch user details along with order
}